""" Helper functions
"""

def get_http_accepted(request):
    """Introspects an request object and returns the name of the
    Accepted Content Type from the HTTP header metadata"""
    meta_obj = getattr(request, 'META', {})
    return meta_obj.get('HTTP_ACCEPT', 'html').lower()
